import React from 'react';
import {Link} from 'react-router-dom'
import NavHome from '../NavHome/NavHome'
function RouterList(props) {
    return(
        <div>
                <h1 style={{paddingTop:'10px',margin:'0  0 10px 0'}}>路由嵌套示例(点击下方进行切换)</h1>
                
                
                <Link style={{marginRight:'10px'}} to="/routerList">嵌套路由1</Link>
                <Link to="/routerList/routerListChildrenT">嵌套路由2</Link>
                
                {  props.children }
                <p>props.children为存放子路由的入口</p>
                <NavHome/>
        </div>
            
        )
    
}
export default RouterList